package com.ssyt.yt1.day2;

/**
 * switch支持byte、short、char、int，在JDK1.7以后还支持了String!
 * @author Administrator
 *
 */
public class SwitchDemo {

	public static void main(String[] args) {
		String score = "hello";
		switch (score) {
		case "hello":
			break;

		default:
			break;
		}
	}
}
